package com.deuwise.common.utils.poi.excel;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * Copyright
 *
 * @author chenwenchao
 * @date 2019/8/2
 * Description:
 */
@Data
public class Column {

    /**
     * 单元格内容
     */
    private String content;
    /**
     * 字段名称，用户导出表格时反射调用
     */
    private String fieldName;

    /**
     * 这个单元格的集合
     */
    private List<Column> listTpamscolumn = new ArrayList<Column>();

    int totalRow;
    int totalCol;

    /**
     * excel第几行
     */
    int row;
    /**
     * excel第几列
     */
    int col;

    /**
     * excel 跨多少行
     */
    int rLen;

    /**
     * excel跨多少列
     */
    int cLen;


    /**
     * 是否有子节点
     */
    private boolean HasChilren;


    /**
     * 树的级别 从0开始
     */
    private int tree_step;
    private String id;
    private String pid;
    public Column(){};
    public Column(String content, String fieldName){
        this.content = content;
        this.fieldName = fieldName;
    }

    public Column(String fieldName, String content, int tree_step) {
        this.tree_step = tree_step;
        this.fieldName = fieldName;
        this.content = content;
    }
}
